package com.world.rickcloudendpoint.models.params;

import com.world.rickcloudendpoint.models.params.common.PageBy;
import com.world.rickcloudendpoint.models.params.common.QueryWhere;
import com.world.rickcloudendpoint.models.params.common.SortBy;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @description: mongodb通用查询条件参数
 * @author: jlsong
 * @date: 2022/01/09 18:40:26
 * @version: 1.0
 */
@Data
@ApiModel(value = "queryParams", description = "用查询条件参数")
public class QueryParams {

    @ApiModelProperty("分页查询条件")
    private PageBy page;

    @ApiModelProperty("通用查询组合对象")
    private QueryWhere where;

    @ApiModelProperty("排序方式")
    private List<SortBy> sorts;
}
